package com.sevenluo.netty.learn.util;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author: 程序员七哥
 * @date: 2022-01-26
 * @description:
 */
public final class IdUtil {
    public static final AtomicInteger IDX = new AtomicInteger();
    private  IdUtil() {
        // no instance
    }

    public static long nextId() {
        return IDX.incrementAndGet();
    }
}


